package cn.edu.njtc.mapper;

import cn.edu.njtc.entity.dto.DoctorLoginDto;
import cn.edu.njtc.entity.dto.DoctorTokenDto;
import cn.edu.njtc.entity.pojo.Doctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {
    Doctor selectByPhone(String phone);
    int insert(Doctor doctor);

    DoctorTokenDto selectByPasswordAndPhone(DoctorLoginDto doctorLoginDto);


    // 根据医院ID查询医生列表
    // List<Doctor> selectDoctorsByHospitalId(@Param("hospitalId") Integer hospitalId);
}